package com.kyrioscraft.cloud.thead.jdklab.tools.simple;

public class MyThread extends Thread {
    private int count = 5;
    @Override
    public synchronized void run() {
        super.run();
        while (count > 0) {
            count--;
            System.out.println("由 " + this.currentThread().getName()
                    + " 计算，count=" + count);
        }
    }
}
